package chapter04

import chisel3._
import chisel3.util.random.LFSR

class LFSR4 extends Module {
  val io = IO(new Bundle {
    val en = Input(Bool())
    val out = Output(UInt(4.W))
  })
  io.out := LFSR(4, io.en, Some(1))
}
